Fix completion patterns.