fix ready bug