Fixed the ordering of leg joints