Fix session entity