fix bug on photo attribute