Cleanup and fixed a parent bug when creating bones.