Fix the m_iFrameNumbers bug