FIX a bug of same-var