fixed rawrouter allocation bug