fix checkout complete behaviour