correct errors from 7703d626ec16cc211aa14adb890133f2b8329388

/cc @rojblake
fix error
Merge pull request #1418 from craigh/refactorFixes

correct errors from 7703d626ec16cc211aa14adb890133f2b8329388