Fix z-index bug on border.