VAR Fix #2

attempt to fix undefined VAR errors