Fixes crashing bug due to undefined variable. How embarrassing.