fix photo bugs