Fix a bug when setting the default mock namespace