fix bug when first loading of page phototheque