fixed bug by escaping URI params