Fixed calling analytics module without injecting it first