Fix logPlugin bug