fix problem with not virtual method in entity