Fix key directory