Fix routing table creation