fix delete behavior for modal form fields