photo trigger bug fix