fixed bug with dogs hitting the fence before entering