Fixed analytics error