Photo path route bug fix