fix animation callback