bugfix: fetch method never ends when there is no namespace.
Fix deprecation warning for express 4