fix bug with Router