fix for immediate promise