fix bug: the order of photos is different when open extension every time