While you are making the custard mixture, the caramel sauce will harden. This is normal. Once the flan has chilled and you invert it onto a plate, the sauce will soften.