fix checkout bug