Correcting attribute offset problem.