Fix session warnings