There are many ways to write the sentence. 1) Remove the word "when" 2) Use the verb "used to" and add a subject. 3) Make the infinitive "sit" a past tense verb and add a subject.
Now you can chose one of the three above. If you post your answer, we can tell you