Fixed a bug for assigning negative decimal value