fix keep-high/keep-low functionality