fix a bug with the photo number in url