Fixed file rewind when last frame has 0 points