fix bug: error of end expression