fix error get type