Fix parse type factory