Fix a bug where duplicate keys could be added to Core.

Signed-off-by: Tyler O'Meara <Tyler@TylerOMeara.com>