Fix edit in modal form