fix setting bug