core: fix syntax errors