fix crashes for really short connections