Fix stripping of false elements