removing wrong constraints