Fixed bad condition check.