Fixed terrible constraint solver bug