fix one element array bug in integ