fixed params leftover from edit mode