Fix bug in `LOAD` grammar rule

Function `$extend` is undefined, probably a typo.