fix bug: hang when meat a less file which has syntax error