Fixed _log function.