Fix session not initialized