Fix many undefined variable notices