fix error when checking hiers