Fix deformation bug