Fixed hiding animation bug.