Fixed the bone parent index to derive the index value from the bone mapping