Fixes an off-by-one error in frame LCM numbering.