Revert change of code in checkout

Change was made in 9bfc03dc2bfa00a48cbdcfa15b92f39109665e1b