Bug: range error while logging in static constructors.