correct error andeling