Fix float to decimal error.