fix bad condition