fix a promise resolution, should fix #109