fixed syntax error

corrected x1 was not in the global scope thus unshareable