fix photo detail bug