Fix nomip check bug