fixed checkout bug