Fix anim pause bug when frame is modified