Revert "Fixed bugs when running setup.py."

This reverts commit 63951ce46568c7c7d193f2ce14c9409626826d5e.