The module constructor should have been declared as shared.