fix for analytics deviceready