fixed base64 bug