fix bug in sessions view