fix phillips code decoding