Fix NA issue in nearestBins