fixing the random bounds issue during animation.