Fix bug with photo type column