fix old decode bug