Fix incorrect syntax messages