Fix logHandler array handling
Fixes #257