fix for new analytics code