fixed open file cancellation