Revert "fixes #548"

This reverts commit 579d0d01d6178d6483d6c80da8274921590f4a5d.