Fix issue with miscalculating frame 9

Frame 9 would miscalculate when the last frame contained a double (or
turkey)