Fixes edit page submit bug