fix error index Photo