Fix bugs in entity info definition.