the following morning , when the King awoke and looked out of his window he beheld to his amazement that the palace , bridge , church , and trees had all vanished , and there was nothing in their place but a bare , miserable-looking hut .