fix whenImportsReady