fix incomplete substitution matrix