 The western wall of the palace partially collapsed in January 2004 and required complete rebuilding.Every stone was removed and numbered to facilitate the reinsertion of each one in its original place with two French stone-masonry companies engaged to supervise the work.The foundation was modernised, first using laser technology to assess the topography of the site, then by driving 22 cement piles into the ground beneath the foundation base to a depth of .