borders disappearing during transition fix