fix unaligned memory offset and some small fixes to interrupt binning