Dog busted knows how to open gate