fixes crash if settings.lwf is missing