Fixed a bug that occurs when a state change happens but no previous statuses exist.