Updated popupmenu.c to avoid segfault.