Warning fix in error log