fixed bug on photo show page