fix a regression that prevented the closing of a file

Signed-off-by: Sébastien Boisvert <sebastien.boisvert.3@ulaval.ca>
add new reference in the output

Signed-off-by: Sébastien Boisvert <sebastien.boisvert.3@ulaval.ca>