decode fix for base 10