Removing extra keys