fix cmd AST error when end with return value.