Fixed StateManager. Now properly passes events to its observers.