Fix for PHP notices.