Fixing glog detection