Fixed category nill issue