Nice little fix to the log in bug