Crossover from anomalous to normal diffusion in porous media