bugfix in auto_build