fix bug, no replacement of var