Revert "fix #503"

This reverts commit eb39d21c76543f1c61b1d07bc83a2c2c9d8927d9.