Admin gallery fix