Minor modification on key frame decision