hash: fix check of parameter