Changed bug in offset class