fix some crashes and improved behaviour for mod selection gui