[bugfix] validate value type