Edit form bugfix