Fixed setting code