Fix a severe bug in the evaluation of linear combinations