BOOLs were not getting encoded