fix constraint transform