workaround rounding erors for some systems