fixed bug affecting the sign of the sel. coeff. as pointed out by Thanasis Kousathanas and Pavlos Pavlidis