Fix key config