Fixed bugs in loadBodyPartsFromConfig