Fixed a bug wherein data sent to write_athena was not first brought up to date