fix issue editing models