Fix: variable name completion might fail

When more than one percents exist.