Effect of depth on flow over a fixed dune