more stable fix for ready issue