Fixed redirect callback.
Fixed namespaces.