fixes bad json request request failure for edit action