fix resource class in session