amend cursor read error