Fix should not matching NS pattern after matching NS in module pattern successfully