Fixes the border rect drawing