fix for unready API issue