fix base64 decode issue