fixed a bug where empty galleries (no files) show action was broken