badval handling bug
v0.005