fix write_invis, workaround irix compiler bug