fixed a bug for really small betting values