working for fixing some bugs in categories section