fix parse error because of unclosed block