Fix setLevel