Fixed insertion of key frames into QMap