Rewrote flag management.
this.data. fix