Stoppped inheriting document in module class