Fixing categories page bug