assert fixes for leave group