Generate a correctly punctuated version of the following text: When we knew we were going to be married then the joke transitioned into The Plan
When we knew we were going to be married, then the joke transitioned into The Plan.