fix problem that photograph can not show.