Revert "fixes #1149"

This reverts commit c481d8d69e0cd3cb6c2f725a8ba6e7e7b4d7e89b.
fixes #1149