Boolean property filter fix

All test were passing but the actual code was not working as supposed.
This has fixed that.