Fixed obscure memory alignment bug on ARM platforms