fix the categories collapse effect