AFP: revert changes

Revert changes to fixes the regression https://github.com/LMMS/lmms/issues/309
However, merging this pull request will cause https://github.com/LMMS/lmms/issues/174