Avoid exception when aligned start and end are crossed over