fix some (all? not likely) problems with dragging close to 2^32-1 frames