amend errors