Debugging
Fixed joint bug: