fixed out of bounds array in dynArduino