fix syntax errors so apiary can load document