Fixed bug in checkout