Fixes crash adding event to calendar