add power assert for testing
fix a runtime error
v0.4.1