promise return fix #4