fix issue with pass parameters to router