Fix glog bugs