fixed addEvent login bug
Merge branch 'jim-mood2'
merge
fixed bug with totalEvents computation