fix uncaught exception on less parsing error