switchedit initialisation fix