fix in compare var sequence