Fixed extractors in case there are multiple namespaces in a single file.

This fixes #201. :santa: