Dear Alex Sleep,
many thanks for your time to investigate the issue!!!
I just get to similar problem and what ever I did - the syntax error remains.
Finally I found your post and thanks to you, I sorted the issue out!!!
Many many thanks!
Cheers
Svetozar Yolov