fix photo delete bug