Fixed display error in entity.php