fix wrong encapsulation of namespaces
correct call of global grid in kernel