Small fix and language dichotomy.

I'll try to port it from python to C and then C++. Learning purpose
only.