fix photo model delete bug