fixed bug in binlog init