fix error of edit controller