fixed a bug in value testing

[[ ]] --> []