fixed an issue with double checkout