fix gallery search