On the homogenization of the rectangular dam problem