AFP: revert changes

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