fix decode problem