fixed attribute channels not correctly offset

fixed some h2d primives