Fix problem that user was not redirected to thankyou page after completed purchase