Shower extractor fan venting into loft space

Job near Kings Lynn. Shower extraction fan was vented into loft. This was causing damp in the loft and the rest of the property.