Fix in comparing doubles