Fixed list_to_one when no session in context