Fixed bugs for bad arduinos