Fixing NullPointerException in Download.