fix the skeleton hierarchy