gallery background, empty search fix