[PhotoGallery]Fix a bug. Now timers will not stop unexpected.