nested modules fix