fix deploy issue with modules having circular deps