counters
fix gallery type saving