Fix problems with top corner lines