typo in gui, commonparents nullpointer removed, bugs fixed