fix bug with var-s