Fixed the resolve and reject static functions