Fix to wall

Wrong way of selecting photos via query