analytics bugfix