fixed bug letting you add the same name more than once