Update rope.lua - Fix from MarkSamman

Fix bug rope.lua