Correcting boolean field update logic, fixes #841