fix errors so that iftttify would work