Fix briefId generation.