fixed location type not being recorded. Should be backwards compatible
with old files that did not record location type as well.