wrong ordering of logs