fixing log tail method.