Fix for PHP notices in monitor