Fix class mismatch in array buffers