Fix session handler error