Fixed buggy log declaration