fixing issues with log_dict being None