fixed a bug of Category value being null