Arduino won't properly run sketch without USB plugged in