Fixed that a broken value is returned as result when user interrupted downloading.