つじつまを合わせる
1
to make one's story to seem coherent;to adjust one's story to fit the situation
Other forms
辻褄を合わせる 【つじつまをあわせる】