Fixes dying animation issue where it is stuck at frame 0.