Fixed friend flag application