Fixed checkout bug