Fix to filter out managed classes.