Fix a spec bug of promise state