Fix for a couple of PHP notices.