Consider the technology of insulation:
The foundation is carefully prepared, for this they free it from dust, bitumen, oil, soil, since polystyrene can lose thermal insulation properties, and all the work will go down the drain. If necessary, the foundation is repaired: it is covered with cement of cracks, the destroyed surface is aligned, and coating waterproofing is covered on top;