Fix the bug for initialize the category twice every time.