set up MAXOVERLAP to avoid too much overlap and numerical instability
Authored by: beichuan 2011-11-18
Parent: [r2487]
Child: [r2489]