Fixed setting bug