remove path everywhere

* 'cursor' is defined but never used.