fixed breaking with files of different geometry types