fixed typo in router.c that was causing the floating point error
fixed typo in router.c that was causing the floating point error