Fix #970 by making sure the session state handler can be called