Fix reference bug in log entries