fix divide by 0 error when only one named type present