got a strange bug of log, so change it to global log