Fix currency parsing stack limit too deep error