Fixed new method setData in Offset.