fixed init_constraints