But , fortunately , his comrade with the straw on his back had entered behind him , and when the door was shut upon them he scattered the straw about , and suddenly the red-hot walls cooled down , and it became so very cold that the Simpleton could scarcely bear to take a bath , and all the water in the room froze .