getting rid of incorrect key extensions