Fixed a bug with reversing the alignments

The bug caused incorrect memory writes for odd sized arguments.