Fix namespace issues in Session model