fix random failure of modlog test