Fixed the bug that caused IsReady to return always true.