fix promise bug
fix some bug about promise