Bone rotation deformation

Im having some problem when rotating bones because some deformations occurs (shown in the pictures)