Fix infinite loop in sharedStart().