fixed context_offset error