fixed saffine bug