FIX ROUTER AND LOG DEBUG