controller: Don't error when adding duplicate keys

Closes #137