fixed bug with getSlippage()