fixed wrong label check