Key replacement fixed

Fixing a mistake with the keys.