Fix CHECK_PREFIX support.