Fix for autosetup

Fix issue #1