Update cursor.lua

skip function fixed