Per #8

Addresses bug #8 
Upstream fix for LMMS/lmms#996