Fix bug with skeleton deformation