Fix bugs in EMC assignment GUI