Fix errornous comparision