fix router is nil inside out_copy