fix typo
keep oroginal error when max attempts is reached