fixed the nullpointer exception going from main to category