Fixed download window bug