Suggested fix for the missing X.dmat problem