Fix params bug