edit end fix