Update

Fixed a bug that photos or tricks could not be deleted in some environment.