fix(decimal): get rid of undefined is not function error