flag's position fix on different border styles