Fixin csv and html outputs