bug correction in undo createModel
reset import state before string import.