Hopefully fixed the annoying nullpointer exception in the logfiles