Log parser script bug fixes