fix photo trigger