Router writing routine fix