Module constructors should have been declared as shared.