fixed align memory problem