bug fix for simex.sgp