Fixed repeat.lua