Fix bug in condition