Added filter for zero roots