bugfix: wrong check for router

bugfix: wrong check for router
Merge pull request #1 from arkadiusjonczek/master

bugfix: wrong check for router