fixes resizing joints vectors