Fixed cancel import file select

Fixes #837