Fixed misplaced download check