Check existing module is a module whne reopening (#297)