fixes issues related to NSDecimal class, and 0 values