Clamped the frame number