fix global log variable