Fixed a corner case related to corners