fixed a bug where arguments in url would mess up routes