fix wrong assignment operator