Fixed problem caused by pointer misalignment