correct error to positions