Revert "bugfix for issue #982"

This reverts commit f61ea7923f13d70e0cc486414e988f8509ed10c9.