Fix rope.lua bug