Fixed memory alignment issue