Fixed bug where all the modifier of the last button in a toolbar overrid...

...es all previous buttons.

This fixes #219.