fix constraints (fixes tests)