Fixed error in events view