Fixed module dependency resolver