fixed bad condition