Fixes to a glitch when autologging