Fix: Fix some undefined variables.