fix parsing typdef