Fix incorrect comparision in get_params