bug fix for session proto