fix modular class loading module dependency issue