Fix a bug in analytics, local variable overriding event action parameter