bugfix: validate value