fix var bug; wrong test