Fixed bug with prismatic joints