Yes, that is a strange oddity that I've run into. The solution I've found for this is to not leave the other edges with no border, but to set them with a border set to the background color--typically white, but whatever it is. This makes those little hangover lines disappear.