fixing sessionid in wait schema