fixed up a data alignment bug