fix log function reference