Returning a score of 1 if sumweight is 0