fix wrong assignment