fix to gfile when cancel chosen