Fixes a problem with boolean fields