Fix num_rd stuff
Fix write_info