Fix prepare statement decode bug