Fixed a bug with offsets, hopefully.