Update rope.lua - Fix from MarkSamman

Fix bug rope.lua
Merge pull request #345 from Jonas21/patch-12

Update rope.lua - Fix from MarkSamman