fixed animation frame bug