Fixed modules rescanning bug from d41c75