fixing frameCheck bugs