fix mimeselect on edit