prevent STMEntity duplicate