Fix extend entity name binding not working.
Fix unresolved error on entities if they are not extended.