Fixed x[0] not recognized as reference of x in arithmetics