fix bug in WithMechanismProperty