* attempt to fix too many onsessionavailible events issue