Small Bugfix in RebuildTask