fix decode base64 json
some fixes