fixing the issue with dog showing up at the beginning