fixed wrong assignment