photo bug fix