Fix some errors

Fix error in editController