fixes key variable in printing tracing