fix photo swapping(modal)