Fix error when updateOrAddYesterday is called