fix mdy bugs