Fixed R3DAlign memory issue