fixed a key reversal