fixed comparsion error (rarely occured)
fixed comparsion error (rarely occured)