bug fix in DecodeFunctions