fixed broken get_params code