Visual Editor: NPE appeared after editing

fix correction