Fixed crash caused by unaligned allocation