"ready' not working