Fix gallery mess