another stab at fixing the log-bug