fix HeadDecode for multiple words