fix "not an entitiy type"