fixes edit url