fix undefined variable errors