fix key config