disable debug mode in gallery