fix bug in recent commit printing result problem

substitution was not applied enough when printing out kctx and ctx