Visual Editor: NPE appeared after editing

fixed