fixed bug with duplicating parameters in url