common.sh: add missing fix_rithgs function.