Deal with boundary edge