Minor code fixes.

Silences some scary looking errors.