Resolve invalid reference.

Resolve invalid reference used when exporting as an AMD module.