bugfix in static build