Fix hidden palace D3 script