Fixes memsize-bug

 - memsize was not changed along with the alignment