Solve filter mushroom problem