Fixed error when log file elements is missing.