fix non initialization bug in relation_io