fixed a display bug with categories with pages already added