bug fix for Photos