offset_thread: transformed offset_retrieval_errors into int ref