fixed issue with null view component in entity