Ugh, fix undefined variable