fixes cases of reruns not displaying the proper output