fix issue with nick completion, commas getting chopped off and ensure initialization of all the fields on restore_gui