Fix bug related to Gtk.TreePath

Acutally, I'm not sure whether this is the right way to fix this bug.
It's strange that path.to_string() will cause failure of debug script.
Any suggestions is welcome.