fix attribute offset. I wonder how it worked though...