Fix the compile error issue for isReady().