bugfix in incremental building