Fix race condition

Format cart table