handle invalid range error for new branches