Fixed download debug error and exception error