fix base64 decode