Fixed assert statement for abstract entities