Fix crash with some skeletons.