fixed a couple debug notice issues