Fixed a few warnings/notices.