Fixed error where dealsHistory was null upon loading