fix bug of setting