repair typedef type