Fix error for session and sidebar related.