Fixed a few offset related bugs.