fix ready_cb notifications to ensure they exactly happen only when needed