fixed set variable bug