Fixed setting a value to properties so that it should always work.