bugfix: wrong check for router

bugfix: wrong check for router