solve block parse error; log function exit