Removing duplicate key