fix for function getBorderAttr()