fix constraint_type dropdown bug