fix problem with float in mssql, cannot use sum there