bug fix, photo number error