fixing deformArray