fix photo/query