binlog bugfix