Fixed namespace variables issue.

No need to put every variable in the global namespace, only fact lookups.