fixes bool type fields being returned as null instead of true or false