reader: fix syntax errors