fixed error in syntax scheme generation