more robust workaround for matlab clipping bug.