Fixed duplicate controllers issue

Fixes https://github.com/LMMS/lmms/issues/189
Need more testing.