fixes #552

undefined var $log_data