reset prompt in case of errors