bugfix and test for unaligned words