Fix a bug with panels (visible panels are already visible)