Chack syntax error on closing WGSN editor. close #346