Fix bug in Joint copy constructor