better handling of zero border width case