Fix minLevel check logic.