bug fixed in modal edit