Fixed bug when adding new keys/Languages

This also fixed if you attempted to add a new laguage but it already
existed.