Revert "fixes #1327"

This reverts commit 96a468b51ae22d6395a0962dbd1cc5c51857e1e9.