fix atan/erf models for Rectangular model