fix match drawing if match group doesn't start at the beginning