Deal with boundary cases