fix bug for module dependency