fix for addDouble array