According to one legend , artisans could not put a corner tower back together after it was dismantled for renovations in the early Qing dynasty , and it was only rebuilt after the intervention of carpenter - immortal Lu Ban .