Fix syntax error on .%, closes #2245