Fix ArrayIndexOutOfBoundsException is LogService