fix setting fields values