Fixed NumberByCategory bug