custom router fix