BUG: not all histogram memory was aligned correctly