fix undefined entity set active state