bug fix edit photos