Fix namespacing error throwing undefined