reverse a change in write_scalars() that causes problems