trying to fix the border reset issues