fix the error of undefined function typeof into __typeof__