Fix syntax NameError

thanks @dkanygin