Fix memory unaligned access.