remove right slash on registering new namespace