Wrongly return float instead of decimal