syntax errors fixed

had a few syntax errors that showed up that affected my device... fixed
for others.