Fixed duplicating keys.