fix trailing comma and radix