provide current cursor to step callback

With the edit on line 1089, this variable doesn't exist yet