weird gap in pulley joint

Hi,

there is a weird gap in a puelly joint between the ground anchors and the bodies.

Try this to see what I mean:

local physics = require("physics")  
local ui = require("ui")  
local gameUI = require("gameUI")  
physics.start()  
  
display.setStatusBar( display.HiddenStatusBar )  
  
physics.setGravity( 0.0, 5.0 )  
physics.setDrawMode( "hybrid" )  
myText = display.newText( "myText:setTextColor( 255,255,255 )  
myText2 = display.newText( "myText2:setTextColor( 255,255,255 )  
local dragBody = gameUI.dragBody   
myBoxDrag = display.newRect(0, 0, 50, 50)  
myBoxDrag.x = 80  
myBoxDrag.y = 180  
physics.addBody( myBoxDrag, "dynamic", { density=10, friction=0, bounce=0 } )  
myBoxDrag:addEventListener( "touch", dragBody )  
myBoxDrag.angularDamping = 2  
myBoxDrag.linearDamping = 2  
  
myBoxRight = display.newRect(0, 0, 50, 50)  
myBoxRight.x = 300  
myBoxRight.y = 180  
physics.addBody(myBoxRight, "dynamic", {density=10, bounce = 0, friction = 0})  
myBoxRight.angularDamping = 2  
myBoxRight.linearDamping = 2  
  
bumper = display.newRect(0, 0, 20, 20)  
bumper.x = 300  
bumper.y = 30  
physics.addBody(bumper, "static", {density=10, bounce = 0, friction = 0})  
  
local boxRopeJoint = physics.newJoint ("pulley", myBoxDrag,myBoxRight, 80,30,   
 300,30, myBoxDrag.x,myBoxDrag.y, myBoxRight.x,myBoxRight.y, 1.0)  

Any idea how to avoid the gap?
I want the right box to be pulled up completely to the ground anchor…
[import]uid: 55806 topic_id: 9474 reply_id: 309474[/import]