Fixed an offset error