bug fixes

fixed recuring dog problem