Does not pick up color keyword in pen table

very simple code all I need is to have everything in back except few line on level 63 when I create PDF with pen table.

after I run this code everything turn black, if I take out the first 2 lines everything on level 63 show up in the correct color but some of the line that are not on level 63 is not black.  looks like the color keyword doesn't work for some reasons. Please help.

Here is my code:
color = 224                                                          !everything 'Black'
priority=2

if ((level == 63) and (style == 3)) then                 !'Blue' 
   if (color == 8) then
      color=253
      priority=0
   endif
endif
if ((level == 63) and (style == 3)) then                 !'Orange' 
   if (color == 6) then
      color=249
      priority=0
   endif
endif
if ((level == 63) and (style == 3)) then                 !'Purple' 
   if (color == 96) then
      color=250
      priority=0
   endif
endif
if ((level == 63) and (style == 2)) then                 !'Green' 
   if (color == 18) then
      color=251
      priority=0
   endif
endif
if ((level == 63) and (style == 7)) then                 !'Red' 
   if (color == 3) then
      color=252
      priority=0
   endif
endif