fix photo view bug