Fixed segfault when adding pool profile via ncurses GUI #322