Fix for when a list is closed

Not very clean