fixed analytics bug