Fixed bug in saving intermediate mcmc output to csv.