@fixbug: when entity add to layer, entity layer attribute not set