fixed "edit" bug.