fixed MWL on edit