Nearest neighbor regression in the presence of bad hubs