fixed dc module index out of bound issue