bug fix: reset cursor after open file cancel