bugfix for keyboard music etc

Fixes #178.