fixed NPE caused by optional parser metadata