While using the genitive after these prepositions is ‘correct’ and should always be used in written German, many native speakers replace it with the dative in informal conversation, saying während dem ...