Fixed category filter when closing.