Rebuild menu inside a transaction