Fix photo delete bug.