Fixed an issue with attribute offsets