Fixed soft negative generation and glog dependency