fix bool primitive