Fixes edit page