Fixed issue where deleting wasn't switching to next child