Why did you move this line outside the else?