Fix error when converting joint vector to python