fix lazy logging referencing