fix router warning (typecasting)