fixed ifType