Fix "Uncaught ReferenceError: pathoschild is not defined"