fixed bug with params getting borked