fixing the variable name in calendar events view