Fix: $ var is declared twice.