fix API bug with boolean fields