fix promise error in 0.10
1.0.1