The behaviour of the free boundary for the dam problem