checkout bug fix