fixed a bug with the new autoskeleton.