Fix to add_to_log()